
public abstract class Figures {
	protected double weightCenterX = 0;
	protected double weightCenterY = 0;
	protected String pattern = "###.##";
 
	public abstract void setWeightCenter();
	public abstract double perimeter();
	public abstract double area();
	public abstract void printInfo();
	
	public double getWeightCenterX(){
		return weightCenterX;
	}
	public double getWeightCenterY(){
		return weightCenterY;
	}
 
}
